project('a06_cairoDemo'
            , 'c'
            , version:'1.0.0'
            , default_options: ['buildtype=debugoptimized', 'warning_level=1']
            , meson_version: '> 0.48.0'
            , license: 'LGPLv2.1+')

gnome = import('gnome')

gtk_debug_cflags=['-DG_ENABLE_DEBUG', '-DG_ENABLE_CONSISTENCY_CHECKS']

add_project_arguments(gtk_debug_cflags, language:'c')

glibDep = dependency('glib-2.0')
gtkDep = dependency('gtk+-3.0')

cc = meson.get_compiler('c')
libm = cc.find_library('m', required: false)    #cos() is in libm 

resources = gnome.compile_resources(
                'resources'
                , 'main.gresource.xml'
                , source_dir: '.'
                , c_name: 'resources'
                )

schemas = gnome.compile_schemas()

a05_widgetDemo = executable(
                'a06_cairoDemo.exe'
                , 'main.c'
                , 'line.c'
                , 'shape.c'
                , 'operator.c'
                , 'transformation.c'
                , 'ellipse.c'
                , 'clip.c'
                , 'image.c'
                , 'pattern.c'
                , 'pango.c'
                , resources
                , schemas
                , dependencies: [glibDep, gtkDep, libm]
                )